class fenshu:
    def __init__(self, num1, num2):
        self.fenzi = num1
        self.fenmu = num2
    def __str__(self):
        # return f"{self.fenzi}/{self.fenmu}, value={self.fenzi/self.fenmu}"
        return f"{self.fenzi}/{self.fenmu}"
    
    def __gt__(self, other):
        return self.fenzi/self.fenmu > other.fenzi/other.fenmu
    
    def __lt__(self, other):
        return self.fenzi/self.fenmu < other.fenzi/other.fenmu
    
    def __eq__(self, other):
        return self.fenzi/self.fenmu == other.fenzi/other.fenmu
    
    def get_value(self):
        return self.fenzi/self.fenmu
    
if __name__ == '__main__':
    instr = input()
    # instr = "100 7 13"
    n,a,b = [int(ch) for ch in instr.split(' ')]
    # 标准分母
    standard = fenshu(a,b)
    value = standard.get_value()
    # print(standard)
    max_fenshu = fenshu(0,1)
    for fenmu in range(n, 1, -1):
        aboutfenzi = value*fenmu
        fenzi = int(aboutfenzi)
        newfenshu = fenshu(fenzi, fenmu)
        if newfenshu == standard:
            newfenshu.fenzi-=1
        if newfenshu > max_fenshu:
            max_fenshu = newfenshu

        # print(newfenshu)
    print(f"{max_fenshu}")
